/**
 * Copyright (C), 2015-2019, XXX有限公司
 * FileName: CashRewardProcessor
 * Author:   zhouheng
 * Date:     2019/6/18 22:44
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhouh.golden.activity.service.processor.reward;

import com.zhouh.golden.activity.service.processor.AbstractRewardProcessor;
import com.zhouh.golden.activity.service.processor.ActivityDrawContext;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zhouheng
 * @create 2019/6/18
 * @since 1.0.0
 */
@Slf4j
@Service
public class NoneRewardProcessor extends AbstractRewardProcessor {
    @Override
    protected void afterProcessor(ActivityDrawContext activityDrawContext) {
        log.info("用户:{},获得奖项:{}",activityDrawContext.getActivityTurntableDrawReq().getUserId(),activityDrawContext.getActDrawAwardItem().getItemName());
        // 保存数据
        saveDrawAwardRecord(activityDrawContext);
    }

    @Override
    public void processor(ActivityDrawContext activityDrawContext) {

    }
}